/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgMemberBehaviorComment extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgMemberBehaviorComment";
	public static final String ALIAS_BCID = "bcid";
	public static final String ALIAS_FK_BEHAVIOR_ID = "fkBehaviorId";
	public static final String ALIAS_CONT = "cont";
	public static final String ALIAS_MEMBER_ID = "memberId";
	public static final String ALIAS_NICK_NAME = "nickName";
	public static final String ALIAS_HEAD_IMAGE = "headImage";
	public static final String ALIAS_COMMENT_DATE = "commentDate";
	public static final String ALIAS_COMMENT_TYPE = "commentType";
	
	//date formats
	public static final String FORMAT_COMMENT_DATE = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * bcid       db_column: bcid 
     */	
	
	private java.lang.Integer bcid;
    /**
     * fkBehaviorId       db_column: fkBehaviorId 
     */	
	
	private java.lang.Integer fkBehaviorId;
    /**
     * cont       db_column: cont 
     */	
	private java.lang.String cont;
    /**
     * memberId       db_column: memberId 
     */	
	
	private java.lang.Integer memberId;
    /**
     * nickName       db_column: nickName 
     */	
	private java.lang.String nickName;
    /**
     * headImage       db_column: headImage 
     */	
	private java.lang.String headImage;
    /**
     * commentDate       db_column: commentDate 
     */	
	
	private java.util.Date commentDate;
    /**
     * commentType       db_column: commentType 
     */	
	
	private java.lang.Integer commentType;
	//columns END

	public SmgMemberBehaviorComment(){
	}

	public SmgMemberBehaviorComment(
		java.lang.Integer bcid
	){
		this.bcid = bcid;
	}

	public void setBcid(java.lang.Integer value) {
		this.bcid = value;
	}
	
	public java.lang.Integer getBcid() {
		return this.bcid;
	}
	public void setFkBehaviorId(java.lang.Integer value) {
		this.fkBehaviorId = value;
	}
	
	public java.lang.Integer getFkBehaviorId() {
		return this.fkBehaviorId;
	}
	public void setCont(java.lang.String value) {
		this.cont = value;
	}
	
	public java.lang.String getCont() {
		return this.cont;
	}
	public void setMemberId(java.lang.Integer value) {
		this.memberId = value;
	}
	
	public java.lang.Integer getMemberId() {
		return this.memberId;
	}
	public void setNickName(java.lang.String value) {
		this.nickName = value;
	}
	
	public java.lang.String getNickName() {
		return this.nickName;
	}
	public void setHeadImage(java.lang.String value) {
		this.headImage = value;
	}
	
	public java.lang.String getHeadImage() {
		return this.headImage;
	}
	public String getCommentDateString() {
		return DateConvertUtils.format(getCommentDate(), FORMAT_COMMENT_DATE);
	}
	public void setCommentDateString(String value) {
		setCommentDate(DateConvertUtils.parse(value, FORMAT_COMMENT_DATE,java.util.Date.class));
	}
	
	public void setCommentDate(java.util.Date value) {
		this.commentDate = value;
	}
	
	public java.util.Date getCommentDate() {
		return this.commentDate;
	}
	public void setCommentType(java.lang.Integer value) {
		this.commentType = value;
	}
	
	public java.lang.Integer getCommentType() {
		return this.commentType;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Bcid",getBcid())
			.append("FkBehaviorId",getFkBehaviorId())
			.append("Cont",getCont())
			.append("MemberId",getMemberId())
			.append("NickName",getNickName())
			.append("HeadImage",getHeadImage())
			.append("CommentDate",getCommentDate())
			.append("CommentType",getCommentType())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getBcid())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgMemberBehaviorComment == false) return false;
		if(this == obj) return true;
		SmgMemberBehaviorComment other = (SmgMemberBehaviorComment)obj;
		return new EqualsBuilder()
			.append(getBcid(),other.getBcid())
			.isEquals();
	}
}

